package com.jsflessons.facelets.example;

import java.util.ArrayList;
import java.util.Collection;



public class MenuBackingBean {
	
	private Collection<MenuItem> menus;

	public Collection<MenuItem> getMenus() {
		return menus;
	}

	public void setMenus(Collection<MenuItem> menus) {
		this.menus = menus;
	}
	
	public MenuBackingBean()
	{
		super();
		menus = new ArrayList<MenuItem>();
		menus.add(new MenuItem("home.xhtml","Home"));
		menus.add(new MenuItem("news.xhtml","News"));
		menus.add(new MenuItem("articles.xhtml","Articles"));
		menus.add(new MenuItem("about.xhtml","About Us"));
	}
	
}
